﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Thaire.Investment.Domains.Master
{
    public class Broker
    {      
        #region Properties
              // BROKER_ID
        public virtual int BrokerId { set; get; }
      // BROKER_CODE
        public virtual String BrokerCode { set; get; }
      // BROKER_NAME_EN
        public virtual String BrokerNameEn { set; get; }
      // BROKER_NAME_TH
        public virtual String BrokerNameTh { set; get; }
      // BROKER_SYMBOL
        public virtual String BrokerSymbol { set; get; }
      // BROKER_STATUS
        public virtual String BrokerStatus { set; get; }
      // CREATE_USER_ID
        public virtual String CreateUserId { set; get; }
      // CREATE_TS
        public virtual DateTime CreateTs { set; get; }

        #endregion

        

        public override bool Equals(object obj)
        {
            if(obj == null)
                return false;
            if(obj.GetType() != typeof(Broker) && !(obj is Broker))
                return false;
            return ToString().Equals(obj.ToString());
        }

        public override int GetHashCode()
        {
            return ToString().GetHashCode();
        }

        public override string ToString()
        {
            return string.Format("{0}",BrokerId);
        }

    }
}
